
public class Main {
    public static void main(String[] args) {
        MyArray myarray=new MyArray();
        myarray.setVal(0,13);
        myarray.setVal(1,"hello");
        String str=(String)myarray.getPos(1);//编译报错
        System.out.println(str);
    }
}